﻿<div>

<h2>JavaScript 代码：</h2>
<textarea name="dp-syntaxhighlighter" class="brush: js; highlight: [5,8,9,10,11,12,13,14]" >
    
    $(function(){
        $("#themeSelector").combobox({
            width: 140,
            editable: false,
            data: $.easyui.theme.dataSource,
            valueField: "path",
            textField: "name",
            value: $.easyui.theme.dataSource[0].path,
            onSelect: function (record) {
                var opts = $(this).combobox("options");
                $.easyui.theme(true, theme, function (item) {
                    var win = $.easyui.messager.show($.string.format("您设置了新的系统主题皮肤为：{0}，{1}。", item.name, item.path));
                });
            }
        });
    });

</textarea>
<h2>HTML 代码：</h2>
<textarea name="dp-syntaxhighlighter" class="brush: html; highlight: []" >
    
    <span>更换皮肤风格：</span>
    <select id="themeSelector"></select>

</textarea>


</div>